package com.clouds.wms.service;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.clouds.wms.bean.Purmi;
import com.clouds.wms.bean.Purmj;
import com.clouds.wms.exception.DatabaseException;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

public interface PurmiService {
	PagesBean getPurmiList(String miaa,String miab,String startMiac,String endMiac,String miad, int offset, int pageSize) throws SysException;
	PagesBean getPurmjList(String mjaa, int offset, int pageSize)throws SysException;
	Purmi getPurmi(String miaa)throws SysException;
	@Transactional(propagation=Propagation.REQUIRED, rollbackFor=DatabaseException.class)
	int delPurmimj(String miaa)throws SysException;
	Purmi getPurmiBySql(String sql)throws SysException;
	int[] savePurmjList(Purmi purmi,List<Purmj> purmiList)throws SysException;
}
